const user={
    namespaced:true,
    state:{
        userInfo:{},
    },
    mutations:{
        SET_USERINFO(state,userInfo){
            state.userInfo = userInfo
        }
    },
    getters:{
        isLogin:state=>Object.keys(state.userInfo).length>0
    }
}

export default user